import request from "@/utils/request";
//设备项目
export function selectModelInfo() {
	return request({
		url: "/device/deviceModel/selectModelInfo",
		method: "get"
	});
}
// 当月告警TOP
export function selectModelAlarm() {
	return request({
		url: `/device/processDataAlarm/selectModelAlarm`,
		method: "get"
	});
}
// 统计数据
export function getPortalData() {
	return request({
		url: `/device/processDataAlarm/getPortalData`,
		method: "get"
	});
}
//获取电站设备异常数量
export function getDeviceStatistics(modelCode: any) {
	return request({
		url: `/device/deviceLocation/getDeviceStatistics/${modelCode}`,
		method: "get"
	});
}
//获取电站实时情况
export function getModelSituation(modelCode: any) {
	return request({
		url: `/device/deviceModel/getModelSituation/${modelCode}`,
		method: "get"
	});
}
// 查询数据告警列表
export function getModelAlarmStatistics(modelCode: any) {
	return request({
		url: `/device/processDataAlarm/indexAlarmStatistics/${modelCode}`,
		method: "get"
	});
}
//数据质量分析
export function getModelQualityAnalysis(modelCode: any) {
	return request({
		url: `/device/processDataAlarm/dataQualityAnalysis/${modelCode}`,
		method: "get"
	});
}
//电站信息列表
export function powerStationList(params: any) {
	return request({
		url: "/portal/powerStation/list",
		method: "get",
		params
	});
}
